# -*- coding: utf-8 -*-
# Created by admin on 2020/3/20
# Copyright (c) 2020 admin. All rights reserved.
import os
dirName = r"D:\test\runoob" #r代表原始字符串，\只写一个就可以，普通字符串中\是转义符，需要写两个
#列出某个文件夹下所有的文件和子文件夹
allFile = os.listdir(dirName)
print(allFile)